package com.mzj.saas.mservice.wallet.entity;

import com.mzj.saas.mservice.sys.entity.IdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/*
 *转账记录表
 */
@Entity
@Table(name = "saas_withdraw_transfer_record")
public class WithdrawTransferRecord extends IdEntity {

	/**
	 * 提现id
	 */
	@Column(name = "withdraw_id", nullable = false)
	private Long withdrawId;

	/**
	 * 收款方名称
	 */
	@Column(name = "payee_name", nullable = false)
	private String payeeName;

	/**
	 * 收款方账户
	 */
	@Column(name = "payee_account", nullable = true)
	private String payeeAccount;

	/**
	 * 转账金额
	 */
	@Column(name = "trans_amount", nullable = false)
	private Integer transAmount;

	/**
	 * 网关响应码
	 */
	@Column(name = "code", nullable = true)
	private String code;

	/**
	 * 网关返回码描述
	 */
	@Column(name = "msg", nullable = true)
	private String msg;

	/**
	 * 业务返回码
	 */
	@Column(name = "sub_code", nullable = true)
	private String subCode;

	/**
	 * 业务返回码描述
	 */
	@Column(name = "sub_msg", nullable = false)
	private String subMsg;

	/**
	 * 商户转账唯一订单号
	 */
	@Column(name = "out_biz_no", nullable = true)
	private String outBizNo;

	/**
	 * 转账时间
	 */
	@Column(name = "pay_date", nullable = true)
	private Date payDate;
	
	/**
	 * 支付成功流水单号
	 */
	@Column(name = "order_id", nullable = true)
	private String orderId;

	public Long getWithdrawId() {
		return withdrawId;
	}

	public void setWithdrawId(Long withdrawId) {
		this.withdrawId = withdrawId;
	}

	public String getPayeeName() {
		return payeeName;
	}

	public void setPayeeName(String payeeName) {
		this.payeeName = payeeName;
	}

	public String getPayeeAccount() {
		return payeeAccount;
	}

	public void setPayeeAccount(String payeeAccount) {
		this.payeeAccount = payeeAccount;
	}

	public Integer getTransAmount() {
		return transAmount;
	}

	public void setTransAmount(Integer transAmount) {
		this.transAmount = transAmount;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getSubCode() {
		return subCode;
	}

	public void setSubCode(String subCode) {
		this.subCode = subCode;
	}

	public String getSubMsg() {
		return subMsg;
	}

	public void setSubMsg(String subMsg) {
		this.subMsg = subMsg;
	}

	public String getOutBizNo() {
		return outBizNo;
	}

	public void setOutBizNo(String outBizNo) {
		this.outBizNo = outBizNo;
	}

	public Date getPayDate() {
		return payDate;
	}

	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

}
